package com.baichang.taoshunda.dao.impl;

import org.springframework.stereotype.Repository;

import com.baichang.framework.dao.impl.BaseDaoImpl;
import com.baichang.taoshunda.dao.LinkUrlDao;
import com.baichang.taoshunda.entity.LinkUrl;

import java.util.Map;

@Repository
public class LinkUrlDaoImpl extends BaseDaoImpl<LinkUrl> implements LinkUrlDao {
    /**
     * 详情路径
     *
     * @param id
     * @return
     */
    @Override
    public Map<String, Object> getLinkUrlById(Integer id) {
        String sql = " SELECT link FROM {table} WHERE id=? ";
        return queryForMap(sql, id);
    }
}